Skip to main content
Version: 8.4.10.2

UserDividendOverride

V8 Message Definiton

Records in this table overrides GlobalDividends values in theo option pricing calculations.\nNote: Missing/empty DateAmt strings are interpreted as non-dividend paying

METADATA

AttributeValue
Topic3585-option-pricing
MLink TokenClientControl
ProductSRControl
accessTypeSELECT,UPDATE,INSERT,DELETE

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'
ticker_tsenum - TickerSrcPRI'None'
ticker_tkVARCHAR(12)PRI''
clientFirmVARCHAR(16)PRI''
dividendSlotenum - DividendSlotPRI'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
textTINYTEXT''user detail if any
mergeTypeenum - MergeType'None'
DateAmtListJSON'JSON_OBJECT()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
clientFirm4
dividendSlot5

JSON Block (DateAmtList)

FieldTypeComment
divDateDateKeyexdividend date
divValuefloatdividend amount
divCurrencystring
divKindenum - divKinddividend type
divSourceenum - divSourcedividend source
divFreqenum - divFreq

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRControl`.`MsgUserDividendOverride` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '',
`dividendSlot` ENUM('None','TheoPrices','ToolOverride') NOT NULL DEFAULT 'None',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`text` TINYTEXT NOT NULL DEFAULT '' COMMENT 'user detail (if any)',
`mergeType` ENUM('None','FullReplace','PreferOrig','PreferThis','FullReplaceIfNewer') NOT NULL DEFAULT 'None',
`DateAmtList` JSON NOT NULL DEFAULT JSON_OBJECT() CHECK(JSON_VALID(DateAmtList)),
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`,`clientFirm`,`dividendSlot`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='Records in this table overrides GlobalDividends values in theo option pricing calculations.\nNote: Missing/empty DateAmt strings are interpreted as non-dividend paying';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`clientFirm`,
`dividendSlot`,
`timestamp`,
`text`,
`mergeType`,
`DateAmtList`
FROM `SRControl`.`MsgUserDividendOverride`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm'
AND
/* Replace with a ENUM('None','TheoPrices','ToolOverride') */
`dividendSlot` = 'None';

UPDATE TABLE EXAMPLE QUERY

UPDATE `SRControl`.`MsgUserDividendOverride` 
SET
/* Replace with a DATETIME(6) */
`timestamp` = '2022-01-01 12:34:56.000000',
/* Replace with a TINYTEXT */
`text` = 'dummy tiny text',
/* Replace with a ENUM('None','FullReplace','PreferOrig','PreferThis','FullReplaceIfNewer') */
`mergeType` = 'None',
/* Replace with a JSON */
`DateAmtList` = '{"key": "value"}'
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm'
AND
/* Replace with a ENUM('None','TheoPrices','ToolOverride') */
`dividendSlot` = 'None';

INSERT TABLE EXAMPLE QUERY

INSERT INTO `SRControl`.`MsgUserDividendOverride`(
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at`,
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts`,
/* Replace with a VARCHAR(12) */
`ticker_tk`,
/* Replace with a VARCHAR(16) */
`clientFirm`,
/* Replace with a ENUM('None','TheoPrices','ToolOverride') */
`dividendSlot`,
/* Replace with a DATETIME(6) */
`timestamp`,
/* Replace with a TINYTEXT */
`text`,
/* Replace with a ENUM('None','FullReplace','PreferOrig','PreferThis','FullReplaceIfNewer') */
`mergeType`,
/* Replace with a JSON */
`DateAmtList`
)
VALUES(
'None',
'None',
'Example_ticker_tk',
'Example_clientFirm',
'None',
'2022-01-01 12:34:56.000000',
'dummy tiny text',
'None',
'{"key": "value"}'
);

DELETE TABLE EXAMPLE QUERY

DELETE FROM `SRControl`.`MsgUserDividendOverride` 
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm'
AND
/* Replace with a ENUM('None','TheoPrices','ToolOverride') */
`dividendSlot` = 'None';

Doc Columns Query

SELECT * FROM SRControl.doccolumns WHERE TABLE_NAME='UserDividendOverride' ORDER BY ordinal_position ASC;